package com.banksoft.admin.service;

import com.banksoft.admin.entity.UserMoney;
import net.sf.json.JSONObject;

import javax.servlet.http.HttpServletRequest;
import java.util.List;
import java.util.Map;

/**
 * Created by vanjoger on 2017/1/5.
 */
public interface UserMoneyService {
    UserMoney findByUserId(String userId);

    JSONObject updateAmount(String id, String type, String amount, HttpServletRequest request);

    JSONObject changeAmount(String id, String cash, String bonus, String frozenAmount, HttpServletRequest request, String userId, String remark);

    List<UserMoney> listAll(Map<String, Object> map);
}
